<?php

namespace App\Models\Wechat;

use App\Models\Model;

class WechatChannelLog extends Model
{
    protected $table = 'wechat_channel_log';

    public function wechat()
    {
        return $this->hasOne('App\Models\User\WechatOauth','openid','openid');
    }

    public function channel()
    {
        return $this->hasOne('App\Models\Wechat\WechatChannel','id','channel_id');
    }
}
